import { routerReducer } from 'react-router-redux';
import { ReducersMapObject } from 'redux';
import { combineReducers } from 'redux-immutable';

export default function createReducer(injectedReducers: ReducersMapObject) {
  return combineReducers({
    route: routerReducer,
    ...injectedReducers
  });
}
